home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950329-19950528 / 000368_news@columbia.edu_Tue May 9 20:07:00 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA25642
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Fri, 12 May 1995 02:23:19 -0400
  3. Received: by apakabar.cc.columbia.edu id AA24574
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Fri, 12 May 1995 02:23:17 -0400
  5. Path: news.columbia.edu!panix!news.mathworks.com!gatech!howland.reston.ans.net!cs.utexas.edu!utnut!nott!nrcnet0.nrc.ca!ratilal
  6. From: Bradley Pick <BPICK@cisti.lan.nrc.ca>
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Reading and Writing Line by Line
  9. Date: 9 May 1995 20:07:00 GMT
  10. Organization: National Research Council, Canada
  11. Lines: 36
  12. Message-Id: <3ooi14$d6c@nrcnet0.nrc.ca>
  13. References: <3oj4c1$51e@nrcnet0.nrc.ca> <1995May7.140204.50030@cc.usu.edu>
  14. Nntp-Posting-Host: ws55.cisti.nrc.ca
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. jrd@cc.usu.edu (Joe Doupnik) wrote:
  18. >
  19. > In article <3oj4c1$51e@nrcnet0.nrc.ca>, Bradley Pick <BPICK@CISTI.LAN.NRC.CA> writes:
  20. > > Using Ms-dos kermit 3.14 I have a script that reads specific lines 
  21. > > from one file and then writes it to second file line by line. 
  22. > > Sometimes my main text file will contain lines that end with a 
  23. > > hyphen ("-") and as a result when I start to read and write the lines
  24. > > one by one I get an error when I encounter any lines that end with
  25. > > a hyphen (-) The error say "TEXT EXCEEDED AVAILABLE BUFFER CAPACITY" 
  26. > > "WORD XXXX IS NOT USABLE HERE". I know that the hypen means to treat 
  27. > > the line and the line below it as one continuing line. But how do I 
  28. > > tell kermit to ignore what that hypen(-) means and to treat each line 
  29. > > individually so I can read line by line. 
  30. > --------
  31. >     Well, as they say, "don't do that." Instead end the line with
  32. > something else, say a space after your hyphen. There is no way of turning 
  33. > off line continuation with a trailing hyphen.
  34. >     Joe D.
  35.  
  36. I can't end the line with anything else as the file that I'm
  37. capturing is edifact coding and it is fixed at 80 characters per
  38. line. The reason I was reading line by line and writing to a second 
  39. file was that at the end of my captured file I have a few lines
  40. that I need to get rid off. The first line starting with "ALL REQUESTS
  41. HAVE BEEN PRINTED"and few others would follow. What I would do was
  42. using the FINDEX function I would stop writing to my second file
  43. when I encountered that magic line and then I would have pure coding 
  44. in my second file.
  45.  
  46. Can someone please tell me how I can the accomplish the same thing
  47. (getting rid of unwanted lines at the bottom of my captured file) 
  48. without running into the problem of reading line by line and getting
  49. caught by a line that ends in a hypen and overflowing the buffer.
  50.  
  51. thanks again
  52.   Brad